﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        tr{text-align:center}
        th{text-align:center}
    </style>
   <asp:GridView runat="server" ID="gv1" AutoGenerateColumns="False" Width="602px" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical"
        OnRowCancelingEdit="gv1_RowCancelingEdit" OnRowDeleting="gv1_RowDeleting" OnRowEditing="gv1_RowEditing" OnRowUpdating="gv1_RowUpdating" Height="154px">
       <AlternatingRowStyle BackColor="White" />
       <Columns>
           <asp:BoundField  DataField="Id"  HeaderText="ID" />
           <asp:BoundField  DataField="Title" HeaderText="标题"/>
           <asp:BoundField  DataField="Content" HeaderText="内容"/>
           <asp:BoundField  DataField="Author" HeaderText="作者"/>
           <asp:BoundField  DataField="Remarks" HeaderText="备注"/>
           <asp:CommandField  ShowCancelButton="true" ShowEditButton="true" ShowDeleteButton="true" HeaderText="高端操作"/>
           
       </Columns>
       
       <FooterStyle BackColor="#CCCC99" />
       <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
       <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
       <RowStyle BackColor="#F7F7DE" />
       <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
       <SortedAscendingCellStyle BackColor="#FBFBF2" />
       <SortedAscendingHeaderStyle BackColor="#848384" />
       <SortedDescendingCellStyle BackColor="#EAEAD3" />
       <SortedDescendingHeaderStyle BackColor="#575357" />
       
   </asp:GridView>
    
    <asp:Button  runat="server" Text="新增" OnClick="Unnamed1_Click"/>
</asp:Content>
